﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="CloudMLDemo.Controllers" %>

<!DOCTYPE html>

<html>
<head runat="server">
    <meta name="viewport" content="width=device-width" />
    <title>Validation Result</title>
</head>
<body>
    <div>
        <% var controller = ViewContext.Controller as HomeController; %>
        <p>
            Validation Message:
        </p>
        <p>
            <%
                Response.Write(ViewContext.ViewData["ValidationMessage"]); %>
        </p>
        <form method="POST" action="/Home/RunJob">
            <input type="hidden" name="inputblob" value="<% Response.Write(ViewContext.ViewData["InputBlob"]);%>">
            <input type="hidden" name="WSEndpoint" value="<% Response.Write(controller.WebServiceODataEndpoint);%>">
             <input type="hidden" name="WSKey" value="<% Response.Write(controller.WebServiceKey);%>">
            <%
                if (controller.IsSuccessful)
                {
                    Response.Write("<input type=\"submit\" value=\"Run Job\">");
                } %>
        </form>
    </div>
</body>
</html>
